<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:form>
	<p:menubar autoSubmenuDisplay="true">

		<p:submenu label="#{msg['label.menu.cadastro']}">
			<p:menuitem value="#{msg['tribunal.menu']}"
				outcome="/pages/protected/admin/tribunal/tribunalList.xhtml" />
			<p:menuitem value="#{msg['advogado.menu']}"
				outcome="/pages/protected/admin/advogado/advogadoList.xhtml" />
			<p:menuitem value="#{msg['processo.menu']}"
				outcome="/pages/protected/admin/processo/processoList.xhtml" />
			<p:menuitem value="#{msg['uf.menu']}"
				outcome="/pages/protected/admin/uf/ufList.xhtml" />
			<p:menuitem value="#{msg['cidade.menu']}"
				outcome="/pages/protected/admin/cidade/cidadeList.xhtml" />
			<p:menuitem value="#{msg['bairro.menu']}"
				outcome="/pages/protected/admin/bairro/bairroList.xhtml" />
		</p:submenu>

		<p:submenu label="#{msg['label.menu.controleAcesso']}">
			<p:menuitem value="#{msg['usuario.menu']}"
				outcome="/pages/protected/admin/usuario/usuarioList.xhtml" />
			<p:menuitem value="#{msg['papel.menu']}"
				outcome="/pages/protected/admin/papel/papelList.xhtml" />
		</p:submenu>

		<f:facet name="options">
			<p:commandButton value="#{msg['botao.sair']}"
				action="#{loginBean.logout}" />
		</f:facet>

	</p:menubar>
</h:form>

</html>